package com.persons.springbootproject.controller;


import com.persons.springbootproject.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author syy
 */
@RestController
public class StudentController {

    @GetMapping("/student")
    public String StudentInformation(){
        Student zhangSan =new Student(1,"张三",21,"男",1,50,60,70);

        return zhangSan.toString()+","+zhangSan.totalScore();
    }
}
